<div style="width:420px;height:500px;margin-top:100px;margin-left:120px;">
    <table width="420px">
        <tr height="42px"><td>请输入仓库号：</td><td><input type="text" name="storeNo" id="storeNo"/></td></tr>
        <tr><td colspan="2"><input type="button" value="打印条形码" id="mysubmit"/></td></tr>
    </table>
</div>

<div id="printstore" style="display:none;">
        <script type="text/javascript" src="/admins/js/jquery/jquery.PrintArea.js"></script>
        <style>
        body{
            -webkit-print-color-adjust: exact;
        }
        #printstore{
            width:280px;text-align: center;float: left;
            margin-top: 200px;
        }
        </style>
        <div style="width:85px;float:left;margin-bottom: 10px;">&nbsp;</div>
        <div style='margin-top: 10px;width:100px;float:left;text-align: left;font-size:12px;' id="loginname"></div>
        <div style="margin-top: 10px;margin-left:30px;text-align:right;float:left;width:50px;font-size:12px;" id="dq"></div>
        <div style='width:280px;text-align: center;font-size:54px;font-weight:900;margin-left: 40px;font-family:Arial;' id="loginstoreno"></div>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        $('#mysubmit').click(function(){
            var storeNo = $('#storeNo').val();
            storeNo = storeNo.toUpperCase();
            $.post(
            '/admini/managestore/printprocess',
            {'storeNo':storeNo},
            function(data){
                 if(data.type==1){
                     $('#loginname').html(data.nikeName);
                     $('#loginstoreno').html(data.storeNo);
                     setTimeout("$('div#printstore').printArea()",200);
                 }else{
                     alert("输入仓库号有误！");
                 }
            },
            'json');
        })         
    });
</script>